package com.angel.dao.health;

import com.angel.core.base.BaseMapper;
import com.angel.health.SysUser;
import com.angel.health.SysUserExample;
import com.angel.health.SysUserExt;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SysUserMapper extends BaseMapper<SysUser>{
    int countByExample(SysUserExample example);

    int deleteByExample(SysUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(SysUser record);

    List<SysUser> selectByExample(SysUserExample example);

    SysUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysUser record, @Param("example") SysUserExample example);

    int updateByExample(@Param("record") SysUser record, @Param("example") SysUserExample example);

    int updateByPrimaryKey(SysUser record);
    
    List<SysUser> login(SysUser record);

	List<SysUser> accountValidate(SysUser record);
	
	List<Map<String, Object>> findAllUser(SysUser record);
	
	List<SysUserExt> findUserById(SysUser record);

	List<SysUser> findAllUsers();

	SysUser findUserByUsernameAndPassword(String username, String password);

	SysUserExt findUserInfo(SysUser sysUser);
}